package com.ruoyi.incomerecord.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.incomerecord.mapper.HouseContarctIncomeRecordMapper;
import com.ruoyi.incomerecord.domain.HouseContarctIncomeRecord;
import com.ruoyi.incomerecord.service.IHouseContarctIncomeRecordService;

/**
 * 收费记录Service业务层处理
 * 
 * @author hct
 * @date 2022-02-16
 */
@Service
public class HouseContarctIncomeRecordServiceImpl implements IHouseContarctIncomeRecordService 
{
    @Autowired
    private HouseContarctIncomeRecordMapper houseContarctIncomeRecordMapper;

    /**
     * 查询收费记录
     * 
     * @param id 收费记录主键
     * @return 收费记录
     */
    @Override
    public HouseContarctIncomeRecord selectHouseContarctIncomeRecordById(Long id)
    {
        return houseContarctIncomeRecordMapper.selectHouseContarctIncomeRecordById(id);
    }

    /**
     * 查询收费记录列表
     * 
     * @param houseContarctIncomeRecord 收费记录
     * @return 收费记录
     */
    @Override
    public List<HouseContarctIncomeRecord> selectHouseContarctIncomeRecordList(HouseContarctIncomeRecord houseContarctIncomeRecord)
    {
        return houseContarctIncomeRecordMapper.selectHouseContarctIncomeRecordList(houseContarctIncomeRecord);
    }

    /**
     * 新增收费记录
     * 
     * @param houseContarctIncomeRecord 收费记录
     * @return 结果
     */
    @Override
    public int insertHouseContarctIncomeRecord(HouseContarctIncomeRecord houseContarctIncomeRecord)
    {
        return houseContarctIncomeRecordMapper.insertHouseContarctIncomeRecord(houseContarctIncomeRecord);
    }

    /**
     * 修改收费记录
     * 
     * @param houseContarctIncomeRecord 收费记录
     * @return 结果
     */
    @Override
    public int updateHouseContarctIncomeRecord(HouseContarctIncomeRecord houseContarctIncomeRecord)
    {
        return houseContarctIncomeRecordMapper.updateHouseContarctIncomeRecord(houseContarctIncomeRecord);
    }

    /**
     * 批量删除收费记录
     * 
     * @param ids 需要删除的收费记录主键
     * @return 结果
     */
    @Override
    public int deleteHouseContarctIncomeRecordByIds(Long[] ids)
    {
        return houseContarctIncomeRecordMapper.deleteHouseContarctIncomeRecordByIds(ids);
    }

    /**
     * 删除收费记录信息
     * 
     * @param id 收费记录主键
     * @return 结果
     */
    @Override
    public int deleteHouseContarctIncomeRecordById(Long id)
    {
        return houseContarctIncomeRecordMapper.deleteHouseContarctIncomeRecordById(id);
    }
}
